package com.springboot.application.enums;

import com.springboot.application.message.ResultMessage;

/**
 * @author zihong.zheng
 * @version 1.0
 * @date 2021/9/6
 * @time 1:04
 * @description
 */
public enum UserResultCode implements ResultMessage {

    SUCCESS("000", "操作成功"),
    FAIL("999", "系统异常"),
    PARAM_ERR("998", "{0}参数非法"),
    USER_TOKEN_EXCEPTION("111", "您还没有登录"),
    REGISTER_MOBILE_REGISTER_ERROR("60000", "手机号码已被注册"),
    REGISTER_MERCHANT_USER_ERROR("60001", "未知异常，请与客服经理联系"),
    REGISTER_MOBILE_REPEATE_ERROR("60002", "手机号码重复出现，请与客服经理联系"),
    REGISTER_CONFIRM_TIMES_ERROR("60003", "身份确认次数超出了最大次数限制，请稍后再试"),
    REGISTER_CONFIRM_EMPTY_ERROR("60004", "请先执行注册操作"),
    REGISTER_CONFIRM_UNSETIDNO_ERROR("60005", "您还没有设置过身份证信息"),
    REGISTER_CONFIRM_IDNO_ERROR("60006", "身份证信息不匹配"),
    USER_APPID_ERROR("60007", "appId 非法"),
    USER_APPID_EXPIRE_ERROR("60008", "appId失效"),
    USER_SEND_PHONE_CODE_ERROR("60009", "验证码发送失败"),
    PASSWORD_CONFIRMPWD_NOT_EQUEAL("60010", "确认密码有误"),
    REGISTER_NEED_CONFIRM_ERROR("60011", "该手机号码已经在其他渠道注册，需要身份确认"),
    HEADURL_UPDATE_ERROR("60012", "头像修改出现异常，请与客服经理联系"),
    USER_REGISTER_ERROR("60013", "对不起，该手机号码无法注册账号，请换其它手机号码再试，谢谢！"),
    USER_NOT_EXIST("60015", "账号未注册，请注册"),
    USER_NOT_REGISTER("60016", "账号未注册，请注册"),
    ACCOUNT_IS_LOCKED("60017", "账户已锁定，请在次日重新登录"),
    UPDATE_BLOCKCODE("60018", "账户已锁定，请在次日重新登录"),
    PWD_ERROR("60019", "登录密码有误，您还可以输入{0}次"),
    NICKNAME_UPDATE_ERROR("60025", "昵称修改失败"),
    NICKNAME_UPDATE_REPEAT("60026", "昵称已被别人占用，请重新输入"),
    PASSWORD_ILLEGAL("60028", "登录密码非法"),
    UPDAETLOGINPWD_MOBILEPHONE_INCOMPLETE("60029", "请找客服补全信息"),
    UPDAETLOGINPWD_MOBILEPHONE_NOTEXIST_ERROR("60030", "用户不存在"),
    UPDATELOGINPWD_OLD_NEW_SAME_ERROR("60031", "用户新旧登录密码相同"),
    SELECT_CREATE_TIME_ERROR("60032", "查询用户注册App时间出现异常"),
    USER_VERSION_ERROR("60034", "用户登录版本错误"),
    IDCARDMSG_NOT_MATCH("60039", "身份验证不一致"),
    BANKCARD_MSG_NOTFOUNT("60040", "银行卡信息未找到"),
    BANKCARD_BANK_NOT_SUPPORT("60041", "暂不支持该银行的银行卡"),
    BANKCARD_CREDITCARD_NOT_SUPPORT("60042", "暂不支持信用卡"),
    BANKCARD_CARD_ISEXIST("60043", "银行卡号已经绑定"),
    BANKCARD_ANYCARD_NOT_BIND("60044", "您还未绑定任何银行卡"),
    IDCARD_IDNO_ISEXIST("60045", "该身份证已被绑定，请联系客服"),
    PASSWORD_LOCKE("60046", "支付密码已被锁定，请3小时后再试"),
    PASSWORD_LOCKED("60047", "支付密码已被锁定"),
    CALL_RECORD_SAVE_ERROR("60058", "通话记录保存失败"),
    PHONE_CONTRACTS_SAVE_ERROR("60059", "通讯录保存失败"),
    BANKCARD_CREDITCARD_SAVEFAIL("60068", "信用卡存储失败"),
    IDCARD_UPLOADED_ERR("60072", "身份证已经上传，不能再次上传"),
    BANKCARD_DEBITCARD_NOT_SUPPORT("60073", "信用卡号有误"),
    PHONE_NOT_UNIQUE("60078", "手机号对应用户不唯一"),
    BIND_CARD_WALLET_ACTIVATE_FAIL("60081", "银行卡鉴权过程申请状态异常"),
    PASSWOR_EXCEPTION("60090", "交易密码解析异常"),
    PASSWOR_ISNULL("60091", "交易密码信息为空"),
    PASSWOR_ERRORCOUT("60092", "支付密码不正确，您还可以输入%s次"),
    BANK_CARD_TYPE_ERR("60093", "您的卡片不是借记卡，请您拍照您的借记卡！"),
    PARAM_ERROR("60094", "参数校验错误"),
    BANK_CARD_VERIFY_ERR("60095", "银行卡识别异常，请重试！"),
    BANK_CARD_NO_ERR("60096", "银行卡号格式错误！"),
    USER_NAME_ERR("60097", "您输入的姓名有误，请重新输入！"),
    ID_NO_ERR("60098", "身份证号输入有误！"),
    PHONE_NO_ERR("60099", "手机号码有误！"),
    MEMBERID_IS_NULL("60100", "memberId为空！"),
    DOUBLE_MEMBERID("60101", "该卡已被绑定"),
    /** @deprecated */
    @Deprecated
    DOUBLE_BIND("60107", "您已绑定该卡，不可重复绑定"),
    GET_VERIFY_CODE_FIRST("60108", "您还未获取验证码，请先获取验证码，在进行其他操作"),
    NO_MATCH_CARD("60109", "无匹配银行卡"),
    WECHAT_INFO_NOT_EXIST("60110", "微信信息不存在"),
    MEMBER_INFO_NOT_EXIST("60111", "会员信息不存在"),
    DUPLICATE_MOBILE_NO("60112", "登录手机号存在冲突"),
    MOBILE_NO_HAS_BINDED("60113", "该手机号已经绑定过微信账号"),
    LOGIN_SUCCESS("60114", "登录成功"),
    REG_SUCCESS("60115", "注册成功"),
    BIND_SUCCESS("60116", "绑定成功"),
    FAILED_TO_UPDATE_USER_ID_AND_NAME("60130", "更新姓名和身份证号失败"),
    PHONE_NO_HAS_BINDED("60200", "该手机号已经绑定过"),
    OPENID_HAS_BINDED("60201", "该用户已经绑定过手机号"),
    AUTH_ERROR_1("70001", "鉴权银行卡失败"),
    AUTH_ERROR_2("70002", "暂不支持绑定信用卡"),
    AUTH_ERROR_3("70003", "请求异常，请与客服经理联系"),
    AUTH_ERROR_4("70004", "验证码已失效，请重新获取验证码"),
    AUTH_ERROR_5("70005", "提交失败，请检查资料是否正确"),
    AUTH_ERROR_6("70006", "验证码获取失败，输入的资料不正确"),
    AUTH_ERROR_7("70007", "验证码发送异常，请检查资料是否正确"),
    AUTH_ERROR_8("70008", "该银行卡暂不支持,请换张银行卡试试"),
    AUTH_ERROR_9("70009", "暂不支持切换银行"),
    AUTH_ERROR_10("70010", "银行卡号错误"),
    AUTH_ERROR_11("70011", "手机号码错误"),
    AUTH_ERROR_12("70012", "姓名错误"),
    AUTH_ERROR_13("70013", "身份证卡号错误"),
    AUTH_ERROR_14("70014", "绑定银行卡超时"),
    BIND_CARD_ERR("70015", ""),
    AUTH_ERROR_15("70016", ""),
    AUTH_ERROR_16("70017", "调用网关接口异常"),
    AUTH_ERROR_17("70018", "该资方不属于第三方鉴权"),
    THIRD_CARD_AUTH_IS_NULL("70020", "第三方银行卡鉴权信息为空"),
    THIRD_RELATION_IS_NULL("70021", "第三方关联信息不存在"),
    AUTH_ERROR_18("70022", "验证失败，请重新获取验证码"),
    AUTH_ERROR_19("70023", "签约处理中，请稍后再试"),
    AUTH_ERROR_20("70024", "该银行卡已鉴权，请勿重复鉴权"),
    AUTH_ERROR_21("70025", "协议号不存在，切换银行卡有误"),
    AUTH_ERROR_22("70026", "鉴权配置信息不存在"),
    AUTH_ERROR_23("70027", "该次鉴权类型不支持或者鉴权状态不支持"),
    AUTH_ERROR_24("70028", "该次鉴权第三方不支持"),
    AUTH_ERROR_29("70029", "鉴权协议号未获取到"),
    AUTH_ERROR_30("70030", "调用网关接口结果为空"),
    WHITE_MOBILE_NOT_EXITS("80001", "白名单不存在"),
    NOT_TESTING_STATUS("80002", "不是测试中的账号，不能还原操作"),
    MEMBER_NOT_EXITS("80003", "测试账号不存在，不可操作"),
    HAVING_TESTING_APPLY("80004", "有一笔正在测试中的申请操作，不可操作"),
    REGISTER_MOBILE_BANKCAR_ISEXIST("62000", "手机号码已被其他人绑定了银行卡，请联系客服"),
    REALNAME_ISERROR("62001", "真实姓名有误，请重新输入"),
    REALIDNO_ISERROR("62002", "身份证号有误，请重新输入"),
    EMAIL_UPDATE_ERROR("62003", "邮箱修改失败"),
    QQ_UPDATE_ERROR("62004", "QQ修改失败"),
    NICKNAME_IS_NULL("62005", "请输入昵称"),
    NICKNAME_IS_WRONG("62006", "昵称有误，请重新输入"),
    EMAIL_IS_WRONG("62007", "邮箱有误，请重新输入"),
    QQ_IS_WRONG("62008", "QQ号有误，请重新输入"),
    VERIFY_CODE_IS_WRONG("62009", "验证码有误"),
    PWD_IS_NULL("62010", "请输入密码"),
    LOGIN_PWD_LENGTH_ERROR("62011", "密码长度为8-20位"),
    LOGIN_PWD_PATTERN_ERROR("62012", "密码请包含字母、数字或特殊字符的组合"),
    SET_LOGIN_PWD_ERROR("62013", "设置登录密码失败"),
    UPDATE_LOGIN_PWD_ERROR("62014", "修改登录密码失败"),
    NOT_SET_LOGIN_PWD("62015", "登录密码未设置，请设置后再试"),
    CELL_PHONE_IS_REGISTERED("62016", "该手机号已被注册"),
    CAN_NOT_GO_ON("62017", "您暂时不能执行此操作!"),
    HAS_BIND_MOBILE("63000", "您已经绑定过手机号码，无需再绑定"),
    ID_NO_HAS_REPEAT("63001", "身份证号码已经被占用"),
    IDCARD_IMAGE_NON_UPLOAD("63002", "身份证图片资料没有上传"),
    ID_NO_AUTH_FAIL("63003", "非法身份证号码"),
    MEMBER_NAME_ERR("63004", "用户姓名格式不符"),
    MEMBER_AGE_ERR("63005", "未满18周岁用户不能提交申请"),
    MEMBER_NOT_EXIST("63006", "会员没有找到"),
    ACTIVITY_MEMBER_IDCARD_NOT_EXITS("63007", "钱包激活用户出现idcard表数据缺失情况"),
    ACTIVITY_IDCARD_OCR_FAIL("63008", "钱包激活用户身份证ocr识别失败"),
    ACTIVITY_IDCARD_NO_ERROR("63009", "钱包激活时ocr的身份证号码与申请时输入的身份证号码不一致"),
    ACTIVITY_IDCARD_VAILD_EXPIRE("63010", "钱包激活时身份证已经过期"),
    ACTIVITY_IDCARD_OCR_BACK_VALID_FAIL("63011", "钱包激活时身份证有效期识别失败"),
    IDCARD_CHANGE_IMAGE_NUN_UPLOAD("63012", "身份证号码变更，需要重新上传身份证影像图片"),
    IDCARD_EDIT_WHILE_VALID("63013", "您的身份证信息已提交，请勿重复提交"),
    IDCARD_OCR_FAIL("63014", "身份证ocr识别失败，请重新上传身份证"),
    FACE_VALIDATE_LOG_NOT_EXIST("63015", "本次尚未做人脸识别"),
    IDCARD_OCR_FAIL_WHILE_EXPIRE("63016", "您的身份证信息与申请时预留的不一致，请确认后重试"),
    IDCARD_OCR_ERROR_LOCK("63017", "您连续失败次数过多，请3个小时后再尝试激活"),
    IDCARD_OCR_VAILD_EXPIRE("63018", "您的身份证已过期"),
    IDCARD_OCR_VAILD_DATE("63019", "身份证ocr识别日期超出有效范围"),
    SMS_CODE_ERR_TIME("63200", "手机验证码输入错误三次，请重新获取验证码"),
    SMS_CODE_ERROR("63201", "验证码错误，请重新输入"),
    MOBILE_REGISTER("63202", "手机号码已经注册"),
    FACE_ERROR_LOCK("63203", "您连续失败五次，请24个小时后再尝试激活"),
    ID_CARD_OCR_FAIL("63204", "用户身份证ocr识别失败"),
    IDCARD_NO_ERROR("63205", "ocr的身份证号码与申请时输入的身份证号码不一致"),
    IDCARD_OCR_BACK_VALID_FAIL("63206", "身份证有效期识别失败"),
    MEMBER_IDCARD_NOT_EXITS("63207", "用户出现idcard表数据缺失情况"),
    ID_CARD_VALID_EXPIRE("63208", "身份证已经过期"),
    ID_CARD_ISSUER_MISS("63209", "身份证ocr识别签发机构缺失"),
    USER_TOKEN_PARSE_EXCEPTION("63300", "userToken解析异常"),
    USER_GENERATE_TOKEN_EXCEPTION("63301", "userToken生成异常"),
    USER_TOKEN_ERROR("63302", "token非法"),
    USER_TOKEN_EXCEPTION_NOTEXIST("63303", "解析Token不含#"),
    USER_TOKEN_EXCEPTION_GETTOKEN_BYKEY("63304", "redis根据key获取userToken异常"),
    USER_TOKEN_NOT_LOGIN("63305", "尚未登录"),
    REGISTER_CHANNEL_USER_MOBILE_ERROR("63306", "渠道接入用户绑定的手机号码不一致"),
    REGISTER_CHANNEL_USER_BINDED_MOBILE("63307", "渠道接入用户已经绑定了手机号码，不能再操作"),
    REGISTER_CHANNEL_USER_MEMBER_ID_NOT_EXIST("63308", "渠道接入用户MemberId没有找到member对象"),
    ACTIVITY_IDCARD_NO_DIFFERENT("63309", "您的身份证信息与申请时预留的不一致，请确认后重试"),
    IDCARD_OCR_CA_VAILD_EXPIRE("63310", "您的身份证有效期存在异常，请确认后重试"),
    IDCARD_NO_IS_ERROR("63311", "您的身份证号跟之前的不一致"),
    CHANGE_CARD_PURPOSE_FAIL("63312", "代扣卡更换失败"),
    NAME_IS_ERROR("63313", "您的姓名跟之前的不一致"),
    DOWNLOAD_FAIL_IMAGE_NOT_FOUND("64001", "未找到下载失败的图片"),
    USER_LOGIN_CHANNEL_ERROR("64002", "登录渠道和之前的登录渠道不一致"),
    APPLY_AUDIT_NO("64003", "查询不到快审信息"),
    SU_NING_INFO_NOT_EXIST("700001", "苏宁户头不存在"),
    FUND_ID_IS_NULL("65001", "资方编号不存在"),
    CHANGE_BANK_INFO("65002", "更换银行卡失败"),
    DEFAULT_BANK_CARD_IS_ERROR("65002", "获取默认银行卡异常"),
    CAN_NOT_DELETE("65003", "该卡已绑定待还订单，暂不能删除"),
    DELETE_BANK_CARD_IS_FAIL("65004", "删除银行卡失败"),
    GET_LAST_REPAYMENT_DETAIL_INFO_IS_FAIL("65005", "获取还款详情失败"),
    CAN_NOT_DELETE_FOR_BORROW_CARD("65006", "该卡是默认借款卡，无法删除"),
    CONTACT_PHONE_NO_IS_SAME_MEMBER("65007", "联系人手机号与用户手机号一致!"),
    FACE_HANDLE_FAIL("65008", "人脸识别处理失败!"),
    CAN_NOT_DELETE_FOR_PROCESSING_ORDER("65009", "您有进行中的订单，暂时无法删除银行卡"),
    TOBACCO_CARD_IMAGE_IS_NULL("65500", "烟证照片未上传"),
    BUSINESS_LICENSE_IMAGE_IS_NULL("65501", "营业执照未上传"),
    STORE_INFO_HAS_BOUND("65502", "店铺信息已被绑定!"),
    STORE_FRONT_IMAGE_IS_NULL("65503", "店铺门头照片未上传"),
    STORE_USER_INFO_IMAGE_IS_NULL("65504", "基本信息照片未上传"),
    STORE_ORDER_INFO_IMAGE_IS_NULL("65505", "订单查询照片未上传");

    private final String resultCode;
    private final String resultMsg;

    private UserResultCode(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    public String getResultCode() {
        return this.resultCode;
    }

    public String getResultMsg() {
        return this.resultMsg;
    }

    @Override
    public String getRespCode() {
        return this.resultCode;
    }

    @Override
    public String getRespMsg() {
        return this.resultMsg;
    }
}

